/*
    Android UIML

	Copyright (C) 2010  Bram Goffings (bramgoffings@gmail.com)

	This program is free software; you can redistribute it and/or
	modify it under the terms of the GNU Lesser General Public License
	as published by the Free Software Foundation; either version 2.1
	of	the License, or (at your option) any later version.

	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU Lesser General Public License for more details.

	You should have received a copy of the GNU Lesser General Public License
	along with this program; if not, write to the Free Software
	Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
*/

package uiml.android.rendering;

public class CustomTypeDecoderDuo {

	// 
	String name = null;
	String method = null;
	
	/**
	 * 
	 */
	public CustomTypeDecoderDuo(String name, String method) {
		this.name = name;
		this.method = method;
	}
	
	/**
	 * 
	 */
	public boolean equals(Object obj) {
		
		CustomTypeDecoderDuo o = (CustomTypeDecoderDuo)obj;
		
		boolean value = false;
		
		if(o.getName().equals(name) && o.getMethod().equals(method))
			value = true;
		
		return value;
	}
	
	/**
	 * 
	 */
	 public int hashCode() {
		 return name.hashCode();
     }

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the method
	 */
	public String getMethod() {
		return method;
	}

	/**
	 * @param method the method to set
	 */
	public void setMethod(String method) {
		this.method = method;
	}
}
